package com.eva.job.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("触发定时任务参数")
public class TriggerJobDTO {

    @ApiModelProperty(value = "任务ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "业务时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date businessTime;

    @ApiModelProperty(value = "预计执行时间", hidden = true)
    private Date scheduledFireTime;

    @ApiModelProperty(value = "实际执行时间", hidden = true)
    private Date fireTime;

    @ApiModelProperty(value = "预计下次执行时间", hidden = true)
    private Date nextFireTime;

    @ApiModelProperty(value = "触发类型", hidden = true)
    private String triggerType;
}
